import Layout from '@/views/layout/index'

export const noticeRoute = [{
  path: '/notice',
  name: 'notice',
  meta: {
    title: '公告', icon: 'form'
  },
  component: Layout,
  // hide: true,
  children: [{
    path: 'notice',
    component: () => import('@/views/notice/page/notice'),
    title: '消息中心1',
    meta: { title: '消息中心1', icon: 'eye' },
    children: [{
      path: 'notice2',
      component: () => import('@/views/notice/page/notice'),
      title: '消息中心2',
      meta: { title: '消息中心2' }
    }, {
      path: 'notice3',
      component: () => import('@/views/notice/page/notice'),
      title: '消息中心3',
      meta: { title: '消息中心3' }
    }]
  }, {
    path: 'news',
    component: () => import('@/views/notice/page/news'),
    title: '新闻&公告',
    meta: { title: '新闻&公告' }
  }, {
    path: 'noticeDetail/:id',
    name: 'noticeDetail',
    component: () => import('@/views/notice/page/noticeDetail'),
    title: '消息详情',
    meta: { title: '消息详情' }
  }, {
    path: 'newsDetail/:id',
    name: 'newsDetail',
    component: () => import('@/views/notice/page/newsDetail'),
    title: '新闻详情',
    meta: { title: '新闻详情' }
  }]
}]
